Windows Terminal
$ winget install -e --id Microsoft.WindowsTerminal
settings.json
起動シェルの設定
ubuntuのGUIDを指定
code:json
{
"defaultProfile": "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}",
}
起動時の画面サイズと位置を設定
code:json
{
"initialCols": 200,
"initialRows": 50,
"initialPosition": "300,300",
}
profiles.defaults
code:json
{
"profiles": {
"defaults": {
"acrylicOpacity": 0.7,
"colorScheme": "One Half Dark",
"cursorColor": "#FFFFFF",
"cursorShape": "filledBox",
"fontFace": "MyricaM M",
"fontSize": 16,
"useAcrylic": true,
"startingDirectory": "//wsl$/Ubuntu/home/username" },
},
}
colorSheme
以下にサンプルがある
actions
頻繁に使うショートカットがctrl + shift + なのはつらいrmaruon.icon
alt + にする
ctrl + にしないのは、ターミナル上のカーソル移動と競合するから
シェルのキーバインドをviモードにしたらctrl + で問題ないかrmaruon.icon
code:json
{
"actions": [
...,
{ "command": "find", "keys": "alt+f" },
{ "command": "newTab", "keys": "alt+t" },
{ "command": "closePane", "keys": "alt+w" }
]
}
refs